<extend name="Public/base"/>

<!-- 子导航 -->
<block name="sidebar">
    <include file="sidemenu"/>
</block>

<block name="body">
    <link href="__STATIC__/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__STATIC__/datetimepicker/css/datetimepicker.css"/>
    <script type="text/javascript" src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"
            charset="UTF-8"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
            charset="UTF-8"></script>
    <div class="main-title">
        <h2>
            新增客户订单
        </h2>
    </div>
    <!-- 表单 -->
    <form id="form" action="{:U('update')}" method="post" class="form-horizontal" enctype="multipart/form-data">
        <!-- 基础文档模型 -->
        <div id="tab" class="tab-pane">
            <div class="span6">
            <div class="form-item">
                <label class="item-label">订单标题</label>
                <input type="text" class="text input-large" required name="title" value="">
            </div>
            <div class="form-item">
                <label class="item-label">发布时间(点击选择)</label>
                <input size="16" type="text" class="form_datetime text input-large" readonly name="release"
                       data-date-format="yyyy-mm-dd" value="<?php echo date('Y-m-d')?>">
                <script type="text/javascript">
                    $(".form_datetime").datetimepicker({format: 'yyyy-mm-dd',language: 'zh-CN',autoclose: true});
                </script>
            </div>
            <div class="form-item">
                <label class="item-label">截止时间(点击选择)</label>
                <input size="16" type="text" class="form_datetime text input-large" readonly name="validity"
                       data-date-format="yyyy-mm-dd" value="<?php echo date('Y-m-d')?>">
                <script type="text/javascript">
                    $(".form_datetime").datetimepicker({format: 'yyyy-mm-dd',language: 'zh-CN',autoclose: true});
                </script>
            </div>
            <div class="form-item">
                <label class="item-label">客户类型</label>
                <label class="radio"><input type="radio" name="type" value="供应方" checked="checked">供应方</label>
                <label class="radio"><input type="radio" name="type" value="需求方">需求方</label>
            </div>
            </div>
            <!--<div class="form-item">-->
                <!--<label class="item-label">联系人</label>-->
                <!--<input type="text" class="text input-large" required name="contact" value="">-->
            <!--</div>-->
            <!--<div class="form-item">-->
                <!--<label class="item-label">始发地</label>-->
                <!--<input type="text" class="text input-large" name="origin" value="">-->
            <!--</div>-->
            <!--<div class="form-item">-->
                <!--<label class="item-label">目的地</label>-->
                <!--<input type="text" class="text input-large" name="destination" value="">-->
            <!--</div>-->
            <!--<div class="form-item">-->
                <!--<label class="item-label">车辆类型</label>-->
                <!--<input type="text" class="text input-large" name="car" value="">-->
            <!--</div>-->
            <!--<div class="form-item">-->
                <!--<label class="item-label">重 量</label>-->
                <!--<input type="text" class="text input-large" name="weight" value="">-->
            <!--</div>-->
            <!--<div class="form-item">-->
                <!--<label class="item-label" style="margin-right: 20px;">作业类型</label>-->
                <!--<label class="checkbox inline">-->
                    <!--<input type="checkbox" value="租赁" name="major_box[]"> 租赁-->
                <!--</label>-->
                <!--<label class="checkbox inline">-->
                    <!--<input type="checkbox" value="装卸" name="major_box[]"> 装卸-->
                <!--</label>-->
                <!--<label class="checkbox inline">-->
                    <!--<input type="checkbox" value="吊装" name="major_box[]"> 吊装-->
                <!--</label>-->
                <!--<label class="checkbox inline">-->
                    <!--<input type="checkbox" value="移动" name="major_box[]"> 移动-->
                <!--</label>-->
                <!--<label class="checkbox inline">-->
                    <!--<input type="checkbox" value="搬迁" name="major_box[]"> 搬迁-->
                <!--</label>-->
                <!--<label class="checkbox inline">-->
                    <!--<input type="checkbox" value="物流" name="major_box[]"> 物流-->
                <!--</label>-->
            <!--</div>-->
            <!--<div class="form-item">-->
                <!--<label class="item-label">价 格</label>-->
                <!--<input type="text" class="text input-large" name="price" value="">-->
            <!--</div>-->
            <div class="form-item">
                <label class="item-label">公 司</label>
                <input type="text" class="text input-large" required name="company" value="">
            </div>
            <div class="form-item">
                <label class="item-label">电 话</label>
                <input type="text" class="text input-large"  required name="telphone" value="">
            </div>
            <!--<div class="form-item">-->
                <!--<label class="item-label">邮 箱</label>-->
                <!--<input type="text" class="text input-large" name="mail" value="">-->
            <!--</div>-->
            <!--<div class="form-item">-->
                <!--<label class="item-label">传 真</label>-->
                <!--<input type="text" class="text input-large" name="fax" value="">-->
            <!--</div>-->
            <!--<div class="form-item">-->
                <!--<label class="item-label">地 址</label>-->
                <!--<input type="text" class="text input-large" name="address" value="">-->
            <!--</div>-->
            <div class="form-item">
                <label class="item-label">经度</label>
                <input type="text" class="text input-large" readonly name="lang" id="lang" value="">
            </div>
            <div class="form-item">
                <label class="item-label">纬度</label>
                <input type="text" class="text input-large" readonly name="lat" id="lat" value="">
            </div>
            <div id="mapBox">
                <div id="searchBox">
                    <table>
                        <tr>
                            <td>
                                <label class="item-label">请输入关键字：</label>
                            </td>
                            <td>
                                <input id="searchText" type="text" class="text input-large">
                            </td>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                            <td>
                                <button class="btn btn-primary" id="addMarker" type="button" onclick="startAddMarker()">开始/重新添加公司地址</button>
                            </td>
                        </tr>
                    </table>
                </div>
                <br>
                <div id="map" style="height: 300px;width: 750px;"></div>
            </div>
            <div class="form-item">
                <label class="item-label">详细内容</label>
                <textarea name="message" class="input-mid"></textarea>
                {:hook('adminArticleEdit')}
            </div>
        </div>

        <div class="form-item">
            <button class="btn btn-success submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定
            </button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>